﻿module Mapparola.Core {

    export class AuthenticationPost {

        //client and server
        public type: RestType = RestType.POST;
        public param: LoginArgs;

        //server
        public _serverProperties: RestServerBase;

        constructor() {
            this._serverProperties = new RestServerBase("/authentication/POST/authenticate");
        }
    }

    export class AuthenticationGet {

        //client and server
        public type: RestType = RestType.GET;

        //server
        public _serverProperties: RestServerBase;

        constructor() {
            this._serverProperties = new RestServerBase("/authentication/GET/getCurrentUser");
        }
    }
}

declare var exports: any;
if (typeof exports != 'undefined') {
    exports.AuthenticationPost = Mapparola.Core.AuthenticationPost;
    exports.AuthenticationGet = Mapparola.Core.AuthenticationGet;
}